<template>

  <el-dialog title="新增借款额度" top="5vh" :visible.sync="jiekuanBZShow" :before-close="Close">
    <div class="label">
      <el-form ref="message" label-position="right" label-width="90px" :inline="true" :model="message">
        <el-row>
          <el-col :span="24">
            <el-form-item label="单位">
              <el-input v-model="message.input1" size="mini"></el-input>
            </el-form-item>
            <el-form-item label="部门">
              <el-input v-model="message.input2" size="mini"></el-input>
            </el-form-item>
            <el-form-item label="策划">
              <el-input v-model="message.input3" size="mini"></el-input>
            </el-form-item>
            <el-form-item label="姓名">
              <el-select v-model="message.input4" class="ytyt" size="mini" placeholder="请选择活动区域">
                <el-option label="张三" value="张三"></el-option>
                <el-option label="李四" value="李四"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="24">
            <el-form-item label="借款额度">
              <el-input v-model="message.input5" size="mini"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <div class="flex_evenly">
          <el-button size="small" type="success" @click="outlimit">提交</el-button>
          <el-button size="small" type="danger" @click="Close">关闭</el-button>
        </div>
      </el-form>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      labelPosition: 'right',
      jiekuanBZShow: true,
      flag: false,
      message: {
        input1: '华电',
        input2: '技术部',
        input3: '策划',
        input4: '张三',
        input5: 213
      }
    }
  },
  methods: {
    openshowadd() {
      this.jiekuanBZShow = true
    },
    outlimit() {
      this.jiekuanBZShow = false
    },
    changeradio(radio) {
      console.log(radio)
      if (radio === '否') {
        this.flag = true
      }
      if (radio === '是') {
        this.flag = false
      }
    },
    Close() {
      this.$confirm('你确定要离开吗？')
        .then(_ => {
          this.jiekuanBZShow = false
        })
        .catch(_ => {})
    },
  }
}
</script>

<style lang="scss" scoped>
.Information {
  width: 100%;
  p {
    margin: 0px auto;
    width: 80%;
    .el-button {
      margin-right: 0%;
      margin-top: 0%;
      margin-left: 16%;
      margin-bottom: 5%;
      /* text-align: center; */
      width: 70px;
    }
  }
}
</style>
